package com.dbsop.entity;

import com.dbsop.anthorizatiion.ESFiledMapping;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Random;

/**
 * 成绩单
 */
@Getter
@Setter
public class Transcript {

    /**
     * 科目名称
     */
    private String subjectsName;

    /**
     * 科目代码
     */
    private Integer subjectsNo;

    /**
     * 那一期
     */
    private Integer periods;

    /**
     * 得分
     */
    private Integer score;

    /**
     * 名次
     */
    private Integer ranking;


    public void genData(String subjectsName,Integer subjectsNo,Integer periods){
            this.subjectsNo = subjectsNo;
            this.subjectsName = subjectsName;
            this.periods = periods;
        Random r = new Random();
        this.score = r.nextInt(100);
    }



}
